<!--//弹出聊天界面 JSON-->
<input type="hidden" id="msgchat_uid" value="<!--{$chatuser.userid}-->" />
<input type="hidden" id="msgchat_sid" value="<!--{$sid}-->" />
<div class="bd oe_chat">
  <div class="left">
    <div class="lefttop">
	  <span f="chat_sel_tab" data-tab="chating" class="current" id="tab_chating" title="当前聊天"><i></i></span>
      <label f="chat_sel_tab" data-tab="contact" id="tab_contact_list" title="最近联系">
	    <i></i>
		<!--{assign var="contact_count" value=<!--{countdata type="user" mod="msgcontact" where="v.userid='<!--{$login.info.userid}-->'"}-->}-->
		<!--{if $contact_count > 0}-->
		<em><!--{$contact_count}--></em>
		<!--{/if}-->
	  </label>
      <b f="chat_sel_tab" data-tab="friend" title="我的好友">
	    <i></i>
		<!--{assign var="friend_count" value=<!--{countdata type="user" mod="friend" where="v.userid='<!--{$login.info.userid}-->' AND v.black='0'"}-->}-->
		<!--{if $friend_count > 0}-->
		<em><!--{$friend_count}--></em>
		<!--{/if}-->
	  </b> 
    </div>
    <div class="clear"></div>
    <div class="leftuser" id="chating_user_data"> 
      <!--{include file="<!--{$oetplpath}-->msgchat_leftuser.tpl"}-->
	</div>
    <div class="clear"></div>
    <!--//chating_user_data End-->
    <div class="left_box" id="chating_contact_list" style="display:none;">
      <div class="leftuserlist" id="chating_contact_list_data"> </div>
      <div class="msgchat_more_page" f="but_get_msgcontactpage" data-page="" data-usertype="" style="display:none;">
	    <span>加载下一页</span> <br>
        <label style="display:none;"></label>
      </div>
    </div>
    <div class="clear"></div>
    <!--//chating_contact_list_data End--> 
  </div>
  <!--//left End -->
  <div class="right">
    <div class="top" id="chat_log_chatuser_data"> 
      <!--{include file="<!--{$oetplpath}-->msgchat_rightuser.tpl"}-->
	</div>
    <!--//chat_log_chatuser_data End-->
    <div class="content_box">
      <div id="chat_content">
        <div class="msgchat_more_page" f="but_get_msgchatpage" data-page="" style="display:none;">
		  <span>加载下一页</span> <br><label></label>
        </div>
        <div class="content" id="chat_log_data"> </div>
        <!--//chat_log_data End-->

        <!--
        <div class="tips_gift">
          <p class="p_1">对TA感觉不错？</p>
          <p class="p_2"><span id="msgchat_sendgift" f="pop_send_gift" data-touid="<!--{$chatuser.userid}-->" class="cursor">您可以赠送礼物哦~</span></p>
        </div>
        -->
        <!--//tips_gift--> 
      </div>
    </div>
    <!--//content_box End-->
    
    <div class="sendbox">

      <span class="msg_model" f="but_open_msgchat_mb">使用模板</span>
      <div class="msg_modelcon" style="display:none;" id="msgchat_mb_box">
        <span class="jiao"></span>
        <ul>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>HI，你好，看了你的资料，感觉比较适合，想认识你。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>认真看了你的资料，很真诚，愿意交个朋友吗？</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>人人都渴望幸福，但现在最简单的通往幸福的路就是你的回复。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>打个招呼，希望可以有缘认识你！真心祝愿你健康快乐，开心幸福！</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>茫茫人海，愿意和我一起携手么？</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>认识你需要机缘，了解你需要智慧，希望你让我得到幸福的真谛。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>看了你的信息，感觉不错的，希望有机会聊一聊。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>看到你资料的那一刻，就很想与你相识。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>当缘分出现的时候，我们都该珍惜。不是吗？</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>是的，我发现你在这里，我想离你近一点再近一点。</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>第一眼看见你就感觉很好，我可以认识你么？</em>
		  </li>
		  <li f="but_select_msgchat_mb">
		    <i></i><em>久违的心动就在不经意间浏览到你的资料后，很想与你相识。</em>
		  </li>		   
        </ul>
      </div>
      
      <span class="face cursor" f="msgchat_tab_em"></span>
      <textarea id="msgchat_content" cols="30" rows="10"></textarea>
      <b class="msgchat_send_mask" style="display:none;"></b>
      <label f="but_sendmsg" class="cursor">发送</label>
      <div class="oe_msg_face" id="msg_face_box" style="display:none;">
	    <span class="jiao"></span>
		<ul>
		  <!--{assign var="em_i" value=0}--> 
		  <!--{section name=em loop=48}--> 
		  <!--{assign var="em_i" value=$em_i+1}-->
		  <li class="cursor" f="but_msgchat_selectem" data-id="<!--{$em_i-1}-->"><img src="<!--{$urlpath}-->tpl/static/images/face/<!--{$em_i-1}-->.gif"></li>
		  <!--{/section}-->
		</ul>

		<ul>
		  <!--{assign var="em_i" value=49}--> 
		  <!--{section name=em loop=48}--> 
		  <!--{assign var="em_i" value=$em_i+1}-->
		  <li class="cursor" f="but_msgchat_selectem" data-id="<!--{$em_i-1}-->"><img src="<!--{$urlpath}-->tpl/static/images/face/<!--{$em_i-1}-->.gif"></li>
		  <!--{/section}-->
		</ul>
      </div>
      <!--//oe_msg_face End--> 
    </div>
    <!--//私信发送框--> 
    
    
    <div class="oe_chattips msgchat_no_power" style="display:none;">
      <div class="oe_chat_con">
        <p class="p_1"><span></span></p>
        <p class="p_2">
           您没有发送权限或今天发送次数已满！
        </p>
        <p class="p_3">
          <span class="open_vip_msgchat">升级会员</span>
          <label class="close close_msgchat_no_power">取消</label>
        </p>
      </div>
    </div>


  </div>
  <div class="clear"></div>
  <!--//right End--> 
</div>
<!--//bd oe_chat End-->

<div class="oe_openmsg_box" id="free_msgchat_box" style="display:none;">
  <div class="oe_openmsg" id="free_msgchat_data" style="display:none;">
    <h3>选择解锁方式</h3>
    <div class="oe_opencon">
      <p class="p_1"> <span class="cursor" f="but_open_msgchat_paytype">支付<!--{doubleval($config.free_msgchat_fee)}--><!--{$config.moneyname}-->解锁</span>
        <label><a href="<!--{$oefile}-->&c=vip">升级会员解锁</a></label>
      </p>
      <p class="p_2"><span class="cursor" f="but_close_free_msgchat">取消</span></p>
    </div>
  </div>
</div>
<!--//oe_openmsg_box End 解锁方式 --> 

<script type="text/javascript">
$(function(){
	//初始化数据
	_getMsgchatPageList(1);
});
</script>